package day05;

import java.util.Arrays;

public class ArraysDemo {
    public static void main(String[] args) {
        int[] arr1 = new int[10];
        System.out.println(arr1);
        System.out.println(Arrays.toString(arr1));
        System.out.println("================");
        int[] arr2 = {1, 2, 3};
        int[] arr3 = new int[]{2, 3, 4};
        int[] arr4;
        arr4 = new int[]{4, 5, 5};
        int[] arr = new int[5];
        System.out.println(arr.length);
        arr[0] = 100;
        arr[1] = 200;
        arr[2] = 300;
        System.out.println(arr[arr.length - 1]);
        System.out.println("================");
        int[] arr5 = new int[10];
        for (int i = 0; i < arr5.length; i++) {
            arr5[i] = (int) (Math.random() * 100);
            System.out.println(arr5[i]);
        }
    }
}
